home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / computerjanitor / __init__.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.3 KB  |  31 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. VERSION = '1.11'
  5.  
  6. def setup_gettext():
  7.     '''Set up gettext for a module.
  8.  
  9.     Return a method to be used for looking up translations. Usage:
  10.  
  11.       import computerjanitor
  12.       _ = computerjanitor.setup_gettext()
  13.  
  14.     '''
  15.     import gettext
  16.     import os
  17.     domain = 'update-manager'
  18.     localedir = os.environ.get('LOCPATH', None)
  19.     t = gettext.translation(domain, localedir = localedir, fallback = True)
  20.     return t.ugettext
  21.  
  22. from cruft import Cruft
  23. from file_cruft import FileCruft
  24. from package_cruft import PackageCruft
  25. from missing_package_cruft import MissingPackageCruft
  26. from exc import ComputerJanitorException as Exception, UnimplementedMethod
  27. from plugin import Plugin, PluginManager
  28. import warnings
  29. warnings.filterwarnings('ignore', 'apt API not stable yet', FutureWarning)
  30. import apt
  31.